/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.edu.amu.wmi.kino.visualjavafx.model.generators;

import java.awt.Color;
import pl.edu.amu.wmi.kino.visualjavafx.model.objects.shapes.Rectangle;

/**H and VCenterDelta are not set - default is 0,0
 *
 * @author Admin
 */
public class ModelRectangleGenerator {
    public static Rectangle generateRectangle(double x,double y,double height,double width
            ,Color fill,Color border,double strokeWidth){
        Rectangle res = new Rectangle();
        res.setHPos(x);
        res.setVPos(y);
        res.setSizeH(width);
        res.setSizeV(height);
        res.setFillColor(fill);
        res.setBorderColor(border);
        res.setBorderWidth(strokeWidth);
        return res;
    }
}
